import request from '@/utils/request'

// 查询安全生产调度列表
export function listSysSafetyProductionScheduling(query) {
    return request({
        url: '/riskWarning/sysSafetyProductionScheduling/list',
        method: 'get',
        params: query
    })
}

// 查询安全生产调度详细
export function getSysSafetyProductionScheduling(id) {
    return request({
        url: '/riskWarning/sysSafetyProductionScheduling/' + id,
        method: 'get'
    })
}

// 新增安全生产调度
export function addSysSafetyProductionScheduling(data) {
    return request({
        url: '/riskWarning/sysSafetyProductionScheduling',
        method: 'post',
        data: data
    })
}

// 修改安全生产调度
export function updateSysSafetyProductionScheduling(data) {
    return request({
        url: '/riskWarning/sysSafetyProductionScheduling',
        method: 'put',
        data: data
    })
}

// 删除安全生产调度
export function delSysSafetyProductionScheduling(id) {
    return request({
        url: '/riskWarning/sysSafetyProductionScheduling/' + id,
        method: 'delete'
    })
}
